package com.link.base.base.policy.dao.mybatis.mapper;

import com.link.base.base.policy.model.Policy;
import com.link.core.basic.dao.mapper.BasicMapper;

/**
 * @author unknown
 * @date unknown
 * @comments 政策
 */
public interface PolicyMapper extends BasicMapper<Policy> {

    /**
     * 更新图片ID
     * @param entity
     * @throws Exception
     */
    public void imgIdUpdate(Policy entity) throws Exception;

    /**
     * <p>查询最大顺序数值</p>
     *
     * @author yrf
     * @param entity
     * @return double 最大顺序数值
     * @throws Exception
     */
    public Double queryMaxSeq(Policy entity) throws Exception;

    /**
     * 更新政策主要组织Id
     * @auther HuangLJ
     * @param policy 政策 ，必须有政策id ,主要组织id
     * @return 无
     * @throws Exception 常规
     */
    public void updatePolicyMainOrg(Policy policy) throws Exception;
}
